package org.example.demo.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.example.demo.model.UserInfo;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 22652
 * Date: 2024-07-12
 * Time: 14:18
 */

@Mapper
public interface UserInfoMapper {
    /**
     * 注解的方式
     * @param userInfo
     * @return
     */
    Integer insertUserByCondition(UserInfo userInfo);

    /**
     * 使用where标签
     * @param userInfo
     * @return
     */
    List<UserInfo> selectByCondition(UserInfo userInfo);

    /**
     * 使用set标签
     * @param userInfo
     * @return
     */
    Integer updateByCondition(UserInfo userInfo);

    Integer batchDelete(List<Integer> ids);
}
